From 9f2be85640973534d718b861c131e06fb22ab301 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Sun, 24 Nov 2013 03:11:28 +0000 Subject: [PATCH] Fix an1 for NEW_STRINGS. --- gpsbabel/an1.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gpsbabel/an1.cc b/gpsbabel/an1.cc index e32c05893..2e148fa8f 100644 --- a/gpsbabel/an1.cc +++ b/gpsbabel/an1.cc @@ -715,7 +715,9 @@ static void Read_AN1_Waypoints(gbfile* f) } else { int u = wpt_tmp->description.indexOf("{URL="); QString us = wpt_tmp->description.mid(u); - wpt_tmp->AddUrlLink(us); + if (!us.isEmpty()) { + wpt_tmp->AddUrlLink(us); + } } #else } else if (NULL != (url=strstr(wpt_tmp->description, "{URL="))) { -- 2.30.2